package com.itheima.neibulei1;
/*
如何使用一个类    new
如何使用一个类的成员  对象.
 */
public class Demo01 {

    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.i=10;
        System.out.println(outer.i);
        outer.show();
        Outer.Inner inner = outer.new Inner();
        inner.j=20;
        System.out.println(inner.j);
        inner.sing();
    }


}
class Outer{
    int  i;
    public void show(){
        System.out.println(i);
        Inner inner = new Inner();
        System.out.println(inner.j);
        inner.sing();
        System.out.println("show");
    }
    class Inner{
        int j;
        public void sing(){
            System.out.println(i);
        }
    }

}
